/**
 *  审批模块相关接口
 *  approvalAPI
 */
import Instance from '../axiosConfig'

export default {
    //登录接口
    userLogin(data) {
        return Instance.post('/api/admin/user/login', data);
    },
    //员工列表
    personnelList(data) {
        return Instance.post('/api/user/list', data);
    },
    //添加员工
    addPerson(data) {
        return Instance.post('/api/user/addUser', data);
    },
    //删除员工
    deletePerson(data) {
        return Instance.post('/api/user/delete', data);
    },
    //删除员工
    editPerson(data) {
        return Instance.post('/api/user/updateUser', data);
    },
    //员工详情
    getPersonInfo(data) {
        return Instance.post('/api/user/info', data);
    },
    //部门列表
    getDepList(data) {
        return Instance.post('/api/user/deptList', data);
    },
    // ============= 通知 ==================
    //获取通知列表
    getNoticeList(data) {
        return Instance.post('/api/notice/list', data);
    },
    // 删除通知
    deleteNoteById(data) {
        return Instance.post('/api/notice/delete', data);
    },
    // 编辑通知
    editNoteById(data) {
        return Instance.post('/api/notice/updateNotice', data);
    },
    // 添加通知
    addNote(data) {
        return Instance.post('/api/notice/addNotice', data);
    },
    //通知详情
    getNoteceById(data) {
        return Instance.post('/api/notice/info', data);
    },
    //通知查看列表
    getnoticeStatListById(data) {
        return Instance.post('/api/notice/noticeStatList', data);
    },
    // 文件上传
    uploadFile(data) {
        return Instance.post('/api/fcplat/apl/process/uploadFile', data);
    },
//    ================= 分享列表 ===========================
    // 获取分享列表
    getShareList(data) {
        return Instance.post('/api/share/list', data);
    },
    addShare(data) {
        return Instance.post('/api/share/add', data);
    },
    deleteShare(data) {
        return Instance.post('/api/share/delete', data);
    },
    queryDetailInfoById(data) {
        return Instance.post('/api/share/info', data);
    },
    //通知查看列表
    getShareStatListById(data) {
        return Instance.post('/api/share/shareStatList', data);
    },
    //    ================= 视频列表 ===========================
    // 获取列表
    getVideoList(data) {
        return Instance.post('/api/video/list', data);
    },
    addVideo(data) {
        return Instance.post('/api/video/add', data);
    },
    deleteVideo(data) {
        return Instance.post('/api/video/delete', data);
    },
    queryVideoDetailInfoById(data) {
        return Instance.post('/api/video/info', data);
    },
    //查看列表
    getVideoStatListById(data) {
        return Instance.post('/api/video/videoStatList', data);
    },
    //    ================= 通报列表 ===========================
    // 获取列表
    getCircularList(data) {
        return Instance.post('/api/circular/list', data);
    },
    addCircular(data) {
        return Instance.post('/api/circular/addCircular', data);
    },
    deleteCircular(data) {
        return Instance.post('/api/circular/delete', data);
    },
    queryCircularDetailInfoById(data) {
        return Instance.post('/api/circular/info', data);
    },
    //查看列表
    getCircularStatListById(data) {
        return Instance.post('/api/circular/circularStatList', data);
    },
    //    ================= 公司列表文件 ===========================
    // 获取列表
    getInstitutionList(data) {
        return Instance.post('/api/institution/list', data);
    },
    addInstitution(data) {
        return Instance.post('/api/institution/add', data);
    },
    deleteInstitution(data) {
        return Instance.post('/api/institution/delete', data);
    },
    queryInstitutionInfoById(data) {
        return Instance.post('/api/institution/info', data);
    },
    //查看列表
    getInstitutionListById(data) {
        return Instance.post('/api/institution/institutionStatList', data);
    }
};
